//
//  LineTransferTextCell.m
//  JxCarios
//
//  Created by xcq on 15/2/27.
//  Copyright (c) 2015年 xiongchuanqi. All rights reserved.
//

#import "LineTransferTextCell.h"
#import "Common.h"
#import "RextExtends.h"
@implementation LineTransferTextCell

- (void)awakeFromNib {
    [self setSelectionStyle:UITableViewCellSelectionStyleNone];
    // Initialization code
}

- (void) setDetail:(NSString *)detail{
    if (detail) {
        _textView.text = detail;
        _detail = detail;
        CGFloat width = [RextExtends getScreenFrame].size.width;
        _height = [Common fitSizeForText:detail font:[UIFont systemFontOfSize:13.0f] maxWidth:width].height + 15;
    }else {
        return;
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
